package com.lpit.service.impl;

import com.lpit.mapper.CommentMapper;
import com.lpit.mapper.FansMapper;
import com.lpit.result.ResponseResult;
import com.lpit.service.ViewFansService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ViewFansServiceImpl implements ViewFansService {
    @Autowired
    FansMapper fansMapper;
    /**
     *查看粉丝数量
     */
    @Override
    public ResponseResult<Long> getFansCount() {
        Long fansCount = fansMapper.countFans();
        return new ResponseResult<>(fansCount);
    }
}
